package com.hgxd.controller;


import com.hgxd.annotation.OperationLogAnnotation;
import com.hgxd.service.IEquipmentTypeService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

import javax.annotation.Resource;
import java.util.List;

import com.hgxd.result.Result;


import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 设备类型（型号） 前端控制器
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Api(tags = "设备类型（型号）")
@RestController
@RequestMapping("/api/equipment-type")
@CrossOrigin
public class EquipmentTypeController {
    @Resource(name = "EquipmentTypeServiceImpl")
    private IEquipmentTypeService equipmentTypeService;


    /**
     * 查询全部
     */
    @GetMapping("/getAll")
    @ApiOperation(value = "查询全部设备类型", notes = "查询全部设备类型")
    @OperationLogAnnotation(operModule = "设备类型-查询全部设备类型", operType = "查询", operContent = "查询全部设备类型")
    public Result findAll() {
        return Result.ok(equipmentTypeService.list());
    }
}


